home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / fixes / fix011 < prev    next >
Text File  |  1994-08-09  |  3KB  |  70 lines

  1. From theseas!fs.Princeton.EDU!cek Thu, 17 Jun 93 01:37:06 EET
  2. Received: by kriton.UUCP (V1.16/Amiga)
  3.     id AA00000; Thu, 17 Jun 93 01:37:06 EET
  4. Received: by theseas.ntua.gr with UUCP; Tue, 15 Jun 93 11:32:20 +0300
  5. Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
  6.     id AA04278 (5.65c/FORTH-ICS-3.0-MHS-7.0); Tue, 15 Jun 1993 10:37:29 +0300
  7. Received: by mcsun.EU.net via EUnet
  8.     id AA03505 (5.65b/CWI-2.222); Tue, 15 Jun 1993 09:37:24 +0200
  9. Received: from Princeton.EDU by relay1.UU.NET with SMTP 
  10.     (5.61/UUNET-internet-primary) id AA08190; Tue, 15 Jun 93 03:36:14 -0400
  11. Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.96/princeton)
  12.     id AA13443; Tue, 15 Jun 93 03:32:39 -0400
  13. Received: by fs.Princeton.EDU (4.1/1.105)
  14.     id AA05293; Tue, 15 Jun 93 03:32:37 EDT
  15. Received: from ibiza.karlsruhe.gmd.de by fs.Princeton.EDU (4.1/1.105)
  16.     id AA05196; Tue, 15 Jun 93 03:30:50 EDT
  17. Date: Tue, 15 Jun 93 09:30:21 +0200
  18. Message-Id: <9306150730.AA01705@compare>
  19. In-Reply-To: Stu Donaldson's message of Mon, 14 Jun 1993 17:32:53 -0700 (PDT) <m0o5OxK-0003WGC@hindmost.mav.com>
  20. X-Organization: GMD Forschungsstelle an der Universitaet Karlsruhe
  21.                 Vincenz-Priessnitz-Strasse 1
  22.                 W-7500 Karlsruhe 1
  23. X-Fax:          +49-721-6622968
  24. Errors-To: Princeton.EDU!cek
  25. Remailed-Date: Tue Jun 15 03:31:49 EDT 1993
  26. From: Thomas Mueller AKA Howie <karlsruhe.gmd.de!mueller>
  27. To: cs.Princeton.EDU!rayshade-users
  28. Subject: lex.l conflict with symtab.c 4.06.enh2
  29.  
  30. Hi!
  31.  
  32. [...]
  33. |>    Well, since 'linear' is a builtin function in symtab.c, it will
  34. |>    be parsed into a token tLINEAR, not a tSTRING.  This generates
  35. |>    a parse error.  I fixed it by changing linear in the file builtin
  36. |>    table in symtab.c to be 'linearf', however I'm sure this isn't
  37. |>    the real fix.  I suspect you could fix it by making tLINEAR acceptable
  38. |>    as a symtab as well as a tSTRING, but that starts to look dirty.
  39. |>
  40. |>    I wanted to point this out, so the "real maintainer" of rayshade
  41. |>    could determine a suitable fix that is consistent with the rest
  42. |>    of the code and apply it.
  43. [...]
  44.  
  45. Hmmm, I'm not the ``real maintainer'' of rayshade, but since I'm in compiler
  46. business, I know a bit :-) about parsers.  The simplest patch is to fix the
  47. rule for Symtabent in yacc.y to:
  48.  
  49. Symtabent    : tSTRING
  50.         {$$ = SymtabBuiltinFind($1);}
  51.                 | tLINEAR
  52.         {$$ = SymtabBuiltinFind(strsave("linear"));}
  53.                 ;
  54.  
  55. Then coin.ray and gradient.ray both work fine.
  56.  
  57. Have fun
  58. Howie
  59.  
  60. --
  61. %! mueller@karlsruhe.gmd.de AKA Howie                                    _   _
  62. .2/r{rlineto}def setlinewidth 120 dup scale 1 1 0 0 0 1 1 0 1 0 0 0 0  %|_|_|_|
  63. 1 0 0 1 1 1 0 0(egijkmo){dup 3 and exch 4 idiv 3 and moveto setrgbcolor%|_|_|_|
  64. 1 0 r -1 0 0 1 r r closepath save fill restore 0 setgray stroke}forall %|_| |_|
  65.  
  66. ----------
  67. Administrivia: rayshade-request@cs.princeton.edu
  68. Mailing list: rayshade-users@cs.princeton.edu
  69.  
  70.